<template>
<div id="app">
  <tar-bar v-if="this.$route.meta.isNav"></tar-bar>
  <router-view />
  <van-button type="primary">主要按钮</van-button>
</div>
</template>
<script>
import TarBar from '@/components/TarBar.vue'
export default {
  components:{
    TarBar
  },
  mounted(){
    console.log(this.$route)
  }
};
</script>
<style>
* {
  margin: 0;
  padding: 0;
}
#app {
  width: 10rem;
  margin-left: auto;
  margin-right: auto;
}
</style>
